package com.wectrls.config.exceptiom;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Map;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2019/7/1 14:38
 */
@Getter
@Setter
@ToString
public class BindingResultHasFieldErrorsException extends RuntimeException {

    private Integer code;
    private Map<String, String> errorMsg;

    public BindingResultHasFieldErrorsException(String message, Integer code, Map<String, String> errorMsg) {
        super(message);
        this.code = code;
        this.errorMsg = errorMsg;
    }
}
